import { defineStore } from 'pinia'
// 持久化存储
import { login } from '@/request/api/api.js'

export const userStore = defineStore('user', {
  state: () => {
    return {
      userInfo: [],
      token: ''
    }
  },
  getters: {
    
  },
  actions: {

  },

  
  // 持久化存储
  persist: {
    enabled: true,
    strategies: [
      {
        storage: localStorage,
      }
    ]
  }
})


